package com.example.spring_demo.ioc.v3;

import com.example.spring_demo.ioc.v3.Framework;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @className: Car
 * @author: 芃
 * @description:
 * @date: 2024/12/23 11:43
 */
@Component
public class Car {

    @Autowired
    private Framework framework;



    public Car(Framework framework) {
        this.framework = framework;
        System.out.println("Car is created");
    }


    public void run(){
        System.out.println("Car is running");
    }
}
